[NTG-context] Wiki - question about Command/ pages which start with a space character

2024-04-14 Thread garulfo
indentedtext Command/ startitemgroup Command/ startlabeltext Command/ startlinenote Command/ startlines Command/ startmakeup Command/ startmathalignment Command/ startmathcases Command/ startmathmatrix Command/ startmixedcolumns Command/ startnarrower Command/ startnote Command/ startpagecolumns Command/ sta

[NTG-context] new upload

2021-06-04 Thread Hans Hagen
ffset=.5ex, foregroundcolor=white] {\setmathmatrixanchoring[yes]% left|right|both|yes \startmathmatrix \NC a_1 \NC a \NC b \NC c\NR \NC a_2 \NC a \NC b \NC c\NR \NC a_3 \NC a^2 \NC b \NC c\NR \NC a_4 \NC a \NC b_2 \NC c\NR \NC a_5 \NC a \NC b \NC c\

Re: [NTG-context] new upload

2021-06-01 Thread Hans Hagen
efineoverlay[whatever-5][\useMPgraphic{whatever-5}] \framed [synchronize=background, align=normal, frame=off, background=whatever-5] {\setmathmatrixanchoring[both]% left|right|both|yes % {\setmathmatrixanchoring[right]% left|right|both|yes \startmathmatrix \NC a1 \N

Re: [NTG-context] new upload

2021-05-31 Thread Hans Hagen
"three", 0, 1) withcolor "blue" withtransparency (1,.75) ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[whatever-1][\useMPgraphic{whatever-1}] \defineoverlay[whatever-2][\useMPgraphic{whatever-2}] \framed [synchronize=yes, align=no

Re: [NTG-context] Construct a matrix with Metafun

2018-10-14 Thread Wolfgang Schuster
graphics like in your example you can use framed. \starttext \startformula   A\,   \startmathmatrix[left=\left(,right=\right)]   \NC \framed[width=1em,height=1em,frame=off,bottomframe=on]{} \NC \framed[width=1em,height=1em,frame=off,bottomframe=on,leftframe=on]{} \NR

Re: [NTG-context] Construct a matrix with Metafun

2018-10-14 Thread Wolfgang Schuster
in your example you can use framed. \starttext \startformula   A\,   \startmathmatrix[left=\left(,right=\right)]   \NC \framed[width=1em,height=1em,frame=off,bottomframe=on]{} \NC \framed[width=1em,height=1em,frame=off,bottomframe=on,leftframe=on]{} \NR   \NC \framed[width=1em,height=1em,frame

Re: [NTG-context] Problem with \definemathmatrix

2018-01-17 Thread Aditya Mahajan
]% \simplematrixtoks\emptytoks \startusemathstyleparameter\simplematrixparameter \appendtoks \bgroup \startmathmatrix [ \c!distance=\simplematrixparameter\c!distance, \c!left=\simplematrix_left, \c!right

Re: [NTG-context] Problem with math alignment

2017-11-12 Thread Otared Kavian
;matwe...@indiana.edu> wrote: > > Same here. Curiously, the Garden version is ok, while the newest beta seems > to make all alignments centered. > > > Minimal Example: > > > \starttext > \startformula > A=\startmathmatrix[align={right,right}] > \NC1\NC-1\NR &g

Re: [NTG-context] Problem with math alignment

2017-11-12 Thread Weber, Matthias
Same here. Curiously, the Garden version is ok, while the newest beta seems to make all alignments centered. Minimal Example: \starttext \startformula A=\startmathmatrix[align={right,right}] \NC1\NC-1\NR \NC-1\NC1\NR \stopmathmatrix \stopformula \stoptext Matthias > On Nov 12, 2017, at

Re: [NTG-context] mathmatrix vs substack

2017-09-14 Thread Henri
   \startmathmatrix  \NC long line \NC 1 \NR  \NC 1 \NC long line \NR    \stopmathmatrix \stopformula \stoptext On Mon, 2017-09-11 at 10:03 +0200, Hans Hagen wrote: > On 9/11/2017 6:59 AM, Henri wrote: > > > > Dear devs, > > > > Thank you very much for fixing this one

Re: [NTG-context] mathmatrix vs substack

2017-09-11 Thread Hans Hagen
--- \starttext \placeformula \startformula   \sum_{\startsubstack \NC k \NR \NC \omega_n \NR   \stopsubstack} \stopformula \placeformula \startformula   \startmathmatrix[left=\left|,right=\right|] \NC 0 \NC 1 \NR \NC 1 \NC 0 \NR   \stopmathmatrix   = -1 . \stopformula \stoptext

[NTG-context] mathmatrix vs substack

2017-09-10 Thread Henri
  \sum_{\startsubstack \NC k \NR \NC \omega_n \NR   \stopsubstack} \stopformula \placeformula \startformula   \startmathmatrix[left=\left|,right=\right|] \NC 0 \NC 1 \NR \NC 1 \NC 0 \NR   \stopmathmatrix   = -1 . \stopformula \stoptext

Re: [NTG-context] mathalignment vs mathmatrix

2017-09-08 Thread Henri
below which incorporates your requested changes.  Fails with 2017.09.07 23:44 (It worked before, so your version 2017.09.05 15:10 seems to be unaffected). --- \starttext \startformula   \startmathalignment \NC \psi_{+,\mathord\Uparrow} ... \startmathmatrix   \NC 0 \NC 1 \NR   \NC 1

Re: [NTG-context] mathalignment vs mathmatrix

2017-09-08 Thread Otared Kavian
ttext > > \placeformula > \startformula > \startmathalignment > \NC \psi_{+,\Up} ... > \startmathmatrix > \stopmathmatrix > \NR > \NC \psi_{+,\Dn} ... > \NR > \stopmathalignment > \stopformula > > \stoptext _

[NTG-context] mathalignment vs mathmatrix

2017-09-07 Thread Henri
} \define\Dn{\mathord\Downarrow} \starttext \placeformula \startformula   \startmathalignment \NC \psi_{+,\Up} ... \startmathmatrix \stopmathmatrix \NR \NC \psi_{+,\Dn} ... \NR   \stopmathalignment \stopformula \stoptext

Re: [NTG-context] mathmatrix and grid: followup

2017-06-01 Thread Henri Menke
the example below which produces a more > > > > > > > balanced output.  Could > > > > > > > this somehow be made the default behaviour or something?   > > > > > > > Currently it requires the > > > &

Re: [NTG-context] mathmatrix and grid: followup

2017-06-01 Thread Henri Menke
> > > > it requires the user > > > > > > to notice that vertical spacing is off and correct it manually, > > > > > > including adding a blank > > > > > > lin

Re: [NTG-context] mathmatrix and grid: followup

2017-04-01 Thread Henri Menke
equires the user to notice >>>>> that vertical spacing is off and correct it manually, including adding a >>>>> blank line before the formula to prevent grid=tolerant being applied to >>>>> the paragraph. >>>>> >>>&g

Re: [NTG-context] mathmatrix and grid: followup

2017-01-24 Thread Henri Menke
. Could this somehow be made the default behaviour or something? >>>> Currently it requires the user to notice that vertical spacing is off and >>>> correct it manually, including adding a blank line before the formula to >>>> prevent grid=tolerant being ap

Re: [NTG-context] mathmatrix and grid: followup

2017-01-06 Thread Henri Menke
pacing is off and correct it >>> manually, including adding a blank line before the formula to prevent >>> grid=tolerant being applied to the paragraph. >>> >>> Cheers, Henri >>> >>> --- >>> >>> \setuplayout[grid=yes] >>>

Re: [NTG-context] mathmatrix and grid: followup

2016-12-10 Thread Henri Menke
t;> >> Cheers, Henri >> >> --- >> >> \setuplayout[grid=yes] >> \showgrid >> >> \starttext >> >> \input knuth >> \startformula >> \

Re: [NTG-context] mathmatrix and grid: followup

2016-11-27 Thread Henri Menke
> \input knuth > \startformula > \vrule % make lineheight and depth visible > \startmathmatrix > \NC A \NR > \NC B \NR > \NC C \NR > \stopmathmatrix > \stopformula > \input tufte > > \stoptext > __

[NTG-context] mathmatrix and grid: followup

2016-11-22 Thread Henri Menke
=tolerant being applied to the paragraph. Cheers, Henri --- \setuplayout[grid=yes] \showgrid \starttext \input knuth \startformula \vrule % make lineheight and depth visible \startmathmatrix \NC A \NR \NC B \NR \NC C \NR \stopmathmatrix \stopformula \input tufte \stoptext

Re: [NTG-context] mathmatrix and grid

2016-10-10 Thread Henri Menke
heers, Henri >>>> >>>> --- >>>> >>>> \setuplayout[grid=both] >>>> \showgrid >>>> >>>> \starttext >>>> >>>> \input knuth >>>> \startformula >>>> \vrule % make lineheight

Re: [NTG-context] mathmatrix and grid

2016-10-10 Thread Wolfgang Schuster
low. Cheers, Henri --- \setuplayout[grid=both] \showgrid \starttext \input knuth \startformula \vrule % make lineheight and depth visible \startmathmatrix \NC A \NR \NC B \NR \NC C \NR \stopmathmatrix \stopformula \input tufte \stoptext The default spacing modell (3) before and after formulas

Re: [NTG-context] mathmatrix and grid

2016-10-10 Thread Henri Menke
>> >> How can I fix that? MWE is below. >> >> Cheers, Henri >> >> --- >> >> \setuplayout[grid=both] >> \showgrid >> >> \starttext >> >> \input knuth >> \startformula >> \vrule % make lineheight and depth visible >> \start

Re: [NTG-context] mathmatrix and grid

2016-10-10 Thread Wolfgang Schuster
height and depth visible \startmathmatrix \NC A \NR \NC B \NR \NC C \NR \stopmathmatrix \stopformula \input tufte \stoptext The default spacing modell (3) before and after formulas breaks grid alignment because when you use another alternative (1 or 2) the alignment is correct. %\setconstan

Re: [NTG-context] mathmatrix and grid

2016-10-08 Thread Henri Menke
gt; > \starttext > > \input knuth > \startformula > \vrule % make lineheight and depth visible > \startmathmatrix > \NC A \NR > \NC B \NR > \NC C \NR > \stopmathmatrix > \stopformula > \input tufte > > \stoptext > ___

[NTG-context] mathmatrix and grid

2016-09-30 Thread Henri Menke
of the line definitely does not coincide with what one would expect. How can I fix that? MWE is below. Cheers, Henri --- \setuplayout[grid=both] \showgrid \starttext \input knuth \startformula \vrule % make lineheight and depth visible \startmathmatrix \NC A \NR \NC B \NR

Re: [NTG-context] TeX "matrix" command not working lately

2016-04-10 Thread L.S.-Soc
atrix command in some way... i don't know any alternative way to create a matrix. any help would be appreciated. Your code works fine here but I suggest to use ConTeXt’s own matrix environment. \starttext \startformula S =\startmathmatrix[left=\left(,right=\right)] \NC \sigma_{x} \NC

Re: [NTG-context] TeX "matrix" command not working lately

2016-04-10 Thread Wolfgang Schuster
ve way to create a matrix. any help would be appreciated. Your code works fine here but I suggest to use ConTeXt’s own matrix environment. \starttext \startformula S =\startmathmatrix[left=\left(,right=\right)] \NC \sigma_{x} \NC \tau_{xy} \NC \tau_{xz} \NR \NC \tau_{yx} \NC

Re: [NTG-context] Simple command with variable number of arguments

2014-05-23 Thread Aditya Mahajan
[#name][#options]#matrix% {\begingroup \edef\currentsimplematrix{#name}% \setupsimplematrix[#name][#options]% \simplematrixtoks\emptytoks \startusemathstyleparameter\simplematrixparameter \appendtoks \bgroup \startmathmatrix

[NTG-context] Bug with mathmatrix row-spacing in \startalign

2013-08-30 Thread Andreas Halkjær
\setupmathmatrix[left={\left[\,}, right={\,\right]}] \starttext \startformula \startmathmatrix \NC 1 \NR \NC 2 \NR \NC 3 \NR \stopmathmatrix \stopformula \startformula \startalign \NC \startmathmatrix \NC 1 \NR \NC 2 \NR \NC 3 \NR \stopmathmatrix \NR \stopalign \stopformula \stoptext

Re: [NTG-context] Bug with mathmatrix row-spacing in \startalign

2013-08-30 Thread Hans Hagen
. Thanks for the quick response, Andreas From \setupmathmatrix[left={\left[\,}, right={\,\right]}] | \starttext \startformula \startmathmatrix\NC1 \NR\NC2 \NR\NC3 \NR\stopmathmatrix \stopformula \startformula\startalign \NC\startmathmatrix\NC1 \NR\NC2 \NR\NC3 \NR\stopmathmatrix\NR

Re: [NTG-context] Struggling with ConTeXt

2012-08-02 Thread Aditya Mahajan
the previous text, so the pdf and xml are fine in Context ? Why not use \startmathalign etc. See: http://dl.contextgarden.net/myway/mathalign.pdf Sorry, I meant, \startmathmatrix (or \startmatrix) etc. Aditya

[NTG-context] A strange problem, probably with \startitemize[columns]

2012-07-28 Thread Marcin Borkowski
] }} \stopnotmode \completecontent[alternative=a,pagestyle=slanted,distance=2pt] \page \startchapter[title={Gry macierzowe\time{15--20}}] \startexercises \startitem Jakie są strategie optymalne dla obu graczy w~grze o~poniższej macierzy? \startformula \startmathmatrix[n=2,left

Re: [NTG-context] itemize in two columns and pagebreaks

2012-06-29 Thread Marcin Borkowski
macierzowe}] \startexercises \startitem Jakie są strategie optymalne dla obu graczy w~grze o~poniższej macierzy? \startformula \startmathmatrix[n=2,left={\left(\,},right={\,\right)},align=right] \NC 1 \NC 2 \NR \NC 3 \NC 4 \NR \stopmathmatrix

[NTG-context] Augmented Matrix

2010-12-23 Thread Paul Dostert
I'm trying to make a simple Augmented matrix using \startmathmatrix and cannot seem to get \VL working correctly. I'd assume to do an augmented matrix I'd do: \startformula \left[ \startmathmatrix[n=4] 1 \NC 1 \NC 1 \VL 1\NR 0 \NC 1 \NC -1 \VL 2\NR 0 \NC 0 \NC 2 \VL 8 \stopmathmatrix \right

Re: [NTG-context] Multi-line labels in MetaPost

2009-08-22 Thread Michail Vidiassov
Dear All, I have fixed this by using: label.rt(textext(\framed[frame=off,align=right]{One\\Two}),origin); And what about proper tables there? Replacing One\\Two in the above code with $ \startmathmatrix \NC 1 \NC 1 \NR \NC 1 \NC 1 \NR \stopmathmatrix $ or \starttable{|cm|cm|} \NC 1 \NC 1

Re: [NTG-context] Multi-line labels in MetaPost

2009-08-22 Thread Aditya Mahajan
On Sat, 22 Aug 2009, Michail Vidiassov wrote: Dear All, I have fixed this by using: label.rt(textext(\framed[frame=off,align=right]{One\\Two}),origin); And what about proper tables there? Replacing One\\Two in the above code with $ \startmathmatrix \NC 1 \NC 1 \NR \NC 1 \NC 1 \NR

Re: [NTG-context] Multi-line labels in MetaPost

2009-08-22 Thread Hans Hagen
Aditya Mahajan wrote: Hans, should we add this to strc-ali? sure, i'll also do the same with getbuffer, as often using buffere is convenient in such cases: \unexpanded\def\getbuffer {\dodoubleempty\dogetbuffer} \starttext \startbuffer[a] $\startmathmatrix \NC 1 \NC 1 \NR \NC 1 \NC

Re: [NTG-context] hdotsfor replacement

2009-08-17 Thread Michail Vidiassov
Dear Aditya and All, On Sun, 16 Aug 2009, Aditya Mahajan wrote: is there a replacement of hdotsfor from LaTeX to fill several cells in a matrix row with one long series of dots? Not that I know of. Currently, you can manually do this using TeX primitives. \startformula \startmathmatrix

Re: [NTG-context] hdotsfor replacement

2009-08-16 Thread Aditya Mahajan
\startmathmatrix \NC a \NC b \NC c \NR \NC \spanomit\spanomit{\dotfill} \NR \NC e \NC d \NC adlsadjsak \NR \stopmathmatrix \startmathmatrix \NC a \NC b \NC c \NR \NC 45 \NC \omit\spanomit{\dotfill} \NR \NC e \NC d \NC adlsadjsak \NR \stopmathmatrix \stopformula \stoptext Hans, can

[NTG-context] matrices with horizontal and vertical delimeters

2009-03-12 Thread Jiří Cigler
best result is \startformula \startmathmatrix[left={\left(\,},right={\,\right)}] \NC 1 \NC \vl \NC 2 \NR \NC \hl \NC \vl \NC \hl \NR \NC 3 \NC \vl \NC 4 \NR \stopmathmatrix \stopformula But the result is not ok. In addition, I would prefer dashed lines. Thanks, Jiri Cigler

Re: [NTG-context] Math equation with indentation

2008-05-14 Thread Aditya Mahajan
\noalign{\vskip 0.2em} \NC \text{subject to} \NR \NC \quad \startmathmatrix[n=9,align={middle,middle,middle, middle,middle,middle,right,middle,middle}, distance=0.3em] \NC a_{11} x_1 \NC + \NC a_{12} x_2 \NC + \NC \cdots \NC + \NC a_{1n} x_n \NC = \NC b_1

Re: [NTG-context] Math equation with indentation

2008-05-13 Thread Aditya Mahajan
to} \NR \NC \quad \startmathmatrix[n=9,align={middle,middle,middle, middle,middle,middle,right,middle,middle}, distance=0.3em] \NC a_{11} x_1 \NC + \NC a_{12} x_2 \NC + \NC \cdots \NC + \NC a_{1n} x_n \NC = \NC b_1 \NR \NC a_{21} x_1 \NC + \NC a_{22

Re: [NTG-context] Ugly matrix spacing

2007-02-19 Thread Aditya Mahajan
first setup lines, matrix glues to the subsequent text. The use of $$ ... $$ for display math will not give you correct spacing. Always use \startformula ... \stopformula BTW, there is also \startmathmatrix in ConTeXt which allows you to \definemathmatrix[pmatrix] [left={\left

Re: [NTG-context] align question

2006-07-15 Thread Aditya Mahajan
code into Context automatically using a perl script, and it's therefore much easier to stick to whatever LaTeX code works. Basically, I just want something comparable to the array environment in LaTeX, which works very nicely. There is \startmathmatrix \stopmathmatrix which is equivalent

Re: [NTG-context] Substack in Context

2006-03-30 Thread Hans Hagen
this maybe? \def\substack#1% {\begingroup \let\\\cr \startmathmatrix #1\stopmathmatrix \endgroup} Probably needs a bit of tweaking to make it look better (perhaps a [strut=no] parameter?). --- On Jan 28, Vit Zyka wrote --- What about use math primitive \atop: \def

Re: [NTG-context] Substack in Context

2006-02-22 Thread Aditya Mahajan
% {\begingroup \let\\\cr \startmathmatrix #1\stopmathmatrix \endgroup} Probably needs a bit of tweaking to make it look better (perhaps a [strut=no] parameter?). --- On Jan 28, Vit Zyka wrote --- What about use math primitive \atop: \def\substack#1% {\begingroup \let\\\atop

Re: [NTG-context] Substack in Context

2006-02-22 Thread Taco Hoekwater
: The definition from m-newmat is at least partly superceded by the new core math definitions Hans added last week, so a new implementation would be better. Can you suggest something? Like this maybe? \def\substack#1% {\begingroup \let\\\cr \startmathmatrix #1\stopmathmatrix \endgroup} Probably

Re: [NTG-context] Substack in Context

2006-01-28 Thread Taco Hoekwater
Aditya Mahajan wrote: The definition from m-newmat is at least partly superceded by the new core math definitions Hans added last week, so a new implementation would be better. Can you suggest something? Like this maybe? \def\substack#1% {\begingroup \let\\\cr \startmathmatrix #1

Re: [NTG-context] Substack in Context

2006-01-28 Thread Vit Zyka
\\\cr \startmathmatrix #1\stopmathmatrix \endgroup} Probably needs a bit of tweaking to make it look better (perhaps a [strut=no] parameter?). What about use math primitive \atop: \def\substack#1% {\begingroup \let\\\atop #1 \endgroup} Vit